home *** CD-ROM | disk | FTP | other *** search
/ MACD 5 / MACD 5.bin / workbench / wb / czesc_1 / cerca / others / starburst.lha / starburst.c < prev   
C/C++ Source or Header  |  1991-06-19  |  682b  |  31 lines

  1. /** starburst.c
  2. *
  3. *     Toggles    the bit that controls whether    asterisk    wildcards are allowed
  4. *     or not.    Thanks to Randall    Jesup!
  5. *
  6. *     W.G.J. Langeveld, July    1990.
  7. *
  8. *   Added check for V36.
  9. *     Greatly reduced in size by using protos and non-c.o linking.
  10. *   Compile with "lc -v -O starburst" and link with "blink starburst.o".
  11. *
  12. *     S. Vigna, June 1991
  13. *
  14. **/
  15. #include    <exec/types.h>
  16. #include    <dos/dos.h>
  17. #include    <dos/dosextens.h>
  18. #include    <proto/exec.h>
  19.  
  20.  
  21. void __saveds main(void) {
  22.  
  23.     struct DosLibrary *DOSBase;
  24.  
  25.     if (!(DOSBase = (void *)OpenLibrary("dos.library", 36L))) return;
  26.  
  27.     ((struct    RootNode    *)(DOSBase->dl_Root))->rn_Flags ^= RNF_WILDSTAR;
  28.  
  29.     CloseLibrary((void *)DOSBase);
  30. }
  31.